// pages/login/login.js
Page({
  onLoad: function (options) {
    this.setData({
      needLogin: wx.getStorageSync('token') === '' ? true : false,
      bindMobile: wx.getStorageSync('bindMobile')
    })
  },
  /**
   * 页面的初始数据
   */
  data: {
    needLogin: false,
    bindMobile: false
  },
  closeModal () {
    console.log('123')
    wx.navigateBack({
      delta: 1
    })    
  }
})